package com.scs.application.core.msg.domain;

import com.scs.application.core.msg.enums.MessageType;
import com.google.common.collect.Lists;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: 场景消息
 */
@Data
@Accessors(chain = true)
public class SceneMessageParam implements Serializable {

    private String name;

    private Object value;

    /**
     * 参数适用的消息类型
     */
    private List<MessageType> suitableMessageTypes;

    public SceneMessageParam(String name, Object value, MessageType... suitableMessageTypes) {
        this.name = name;
        this.value = value;
        this.suitableMessageTypes = Lists.newArrayList(suitableMessageTypes);
    }


}
